const MyPromise = require('./MyPromise');
module.exports = {
  deferred() {
    var resolve;
    var reject;
    var promise = new MyPromise(function (res, rej) {
      resolve = res;
      reject = rej;
    });
    return {
      promise,
      resolve,
      reject,
    };
  },
};
